XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
Go to the documentation of this file.
34 using SingletonOPtr = std::unique_ptr<T>;
39 template <
typename... Args>
40 static T&
get(Args&&... args)
42 static SingletonOPtr instance_(
new T(std::forward<Args>(args)...));
A thread-safer (?) Singleton implementation with argument forwarding.
Definition: singleton.h:33
constexpr Singleton & operator=(const Singleton &) const =delete
Copy assignment (deleted)
constexpr Singleton(const Singleton &)=delete
Copy constructor (deleted)
constexpr Singleton & operator=(const Singleton &&) const =delete
Move assignment (deleted)
static T & get(Args &&... args)
Returns the singleton instance, created the first time with the arguments.
Definition: singleton.h:40
constexpr Singleton(const Singleton &&)=delete
Move constructor (deleted)
constexpr Singleton()=default
Default constructor (protected)
virtual ~Singleton()=default
Destructor.
Definition: capture_base.h:23